<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>net</title>
</head>
<body>
<table>
	<tr class="right">
		<td>

		{% if has_previous %}
		<a href="/control?page={{previous}}">上一页</a>
		{% endif %}

		{% if has_next %}
		<a href="/control?page={{next}}">下一页</a>
		{% endif %}

                     总页数[{{pages}}]

		</td>
	</tr>
</table>
<form action="/control/search/" method="get">
查询交换机端口：<input type="text" name="search" value="{{searchvalue}}" />
<input type="submit" value="查询" />
</form>
<table border='1'>

	<tr>
		<td>配线架</td>
		<td>座位端口</td>
		<td>交换机端口</td>
		<td>交换机型号</td>
		<td>对应人</td>
		<td>ip地址</td>
		<td>备注</td>
	</tr>
	{% for char in object_list %}
	<tr>
		<td>{{char.distribution_frame}}</td>
		<td>{{char.seat_port}}</td>
		<td>{{char.switches_port}}</td>
		<td>{{char.switches_model}}</td>
		<td>{{char.person}}</td>
		<td>{{char.ip}}</td>
		<td>{{char.remark}}</td>
	</tr>
	{% endfor %}
</table>
  
<form enctype="multipart/form-data" action="/control/upload/" method="POST">
上传配线架图表（excel文件）<input type="file" name="file" /><br/>
<input type="submit" value="上传"/>
</form>
<hr>
<p><a href="/control/output/">导出为excel格式文件</a></p>
<img src="/site_images/6C56A6554D1D5E657B530839840ABFBA.jpg"/>
</body>
</html>